import React, { Component } from 'react';
import { observable, computed, action } from 'mobx';

import HeaderNavSkin from '@/component/house/HeaderNavSkin';

//回收站
const NavRecycle = { name: '回收站', icon: '/static/alliance2/image/house/huishouzhan.png', url: '/房源/回收站' };
//换肤
const NavSkin = { render: key => <HeaderNavSkin key={key} /> };

class HeaderNav {

    @observable extraNav = [];
    @action removeAllExtra() {
        this.extraNav.clear();
    }
    @action addHouseModeNav() {
        this.extraNav.push(NavRecycle);
        this.extraNav.push(NavSkin);
    }
    @action addHouseListNav() {
        this.extraNav.push(NavRecycle);
    }
}

export default new HeaderNav();